package com.sky.model;

import com.sky.frame.annotation.Title;

@Title(title = "菜单管理")
public class Resource extends BaseModel{
    private String id;
    @Title(title = "菜单名称")
    private String name;
    @Title(title = "菜单链接")
    private String url;
    private String parentid;
    @Title(title = "上级菜单")
    private String parentname;
    @Title(title = "菜单类型")
    private String type;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getParentid() {
        return parentid;
    }

    public void setParentid(String parentid) {
        this.parentid = parentid == null ? null : parentid.trim();
    }

    public String getParentname() {
        return parentname;
    }

    public void setParentname(String parentname) {
        this.parentname = parentname == null ? null : parentname.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }
}